package com.example.kotlinstudy.基本类型

fun main() {
    val asc = Array(5) { i -> (i * i).toString() }
    asc.forEach { println(it) }

    val x: IntArray = intArrayOf(1, 2, 3)
    x[0] = x[1] + x[2]
    val arr001 = IntArray(5)
    val arr002 = IntArray(5) { 42 }
    var arr003 = IntArray(5) { it * 1 }
    arr001.forEach { println(it) }
    arr002.forEach { println(it) }
    arr003.forEach { println(it) }
}